<!--{include header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">

<div id="sysmsg-guide"><div class="link"><a href="/help/tour.php"></a></div><a id="sysmsg-guide-close" href="javascript:void(0);" class="close">关闭</a></div>

<div id="recent-deals">
	<!--{if count($categories) > 0}-->
	<div class="dashboard" id="dashboard">
		<ul>
			<li <!--{if $group == 'all'}-->class="current"<!--{/if}-->>
				<a href="index.php?group=all">
					今日推荐
				</a>
				<span>
				</span>
			</li>
			<!--{loop $categories $index $one}-->
			<li <!--{if $group == $one['ename']}-->class="current"<!--{/if}-->>
				<a href="index.php?group={$one['ename']}">
					{$one['name']}
				</a>
				<span>
				</span>
			</li>				
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->
    <div id="content">
        <div class="box">
            <div class="box-top"></div>
            <div class="box-content">
				<div class="head">
					<h2>今日特惠</h2>
				</div>
            <!--<div class="condition">
					<dl>
						<dt>
							热门商圈:
						</dt>
						<dd>
							<a href="?city=bei_jing" class="selected">
								全部
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E5%9B%BD%E8%B4%B8">
								国贸
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E4%B8%89%E9%87%8C%E5%B1%AF">
								三里屯
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E6%9C%9D%E5%A4%96%E5%A4%A7%E8%A1%97">
								朝外大街
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E5%B7%A5%E4%BD%93">
								工体
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E4%B8%89%E5%85%83%E6%A1%A5">
								三元桥
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E5%AE%89%E8%B4%9E">
								安贞
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E5%AE%89%E6%85%A7%E6%A1%A5">
								安慧桥
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;area=%E4%BA%9A%E8%BF%90%E6%9D%91">
								亚运村
							</a>
						</dd>
					</dl>
					<dl>
						<dt>
							热门分类:
						</dt>
						<dd>
							<a href="?city=bei_jing" class="selected">
								全部
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%B2%BE%E6%B2%B9">
								精油
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%83%A4%E8%82%89">
								烤肉
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=KTV">
								KTV
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%9B%B8%E5%A3%B0">
								相声
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%81%AB%E9%94%85">
								火锅
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%94%B5%E5%BD%B1%E7%A5%A8">
								电影票
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E6%91%84%E5%BD%B1">
								摄影
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E7%BE%8E%E5%8F%91">
								美发
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E5%85%BB%E7%94%9F">
								养生
							</a>
						</dd>
						<dd>
							<a href="?city=bei_jing&amp;kw=%E4%BD%93%E6%A3%80">
								体检
							</a>
						</dd>
					</dl>
				</div>-->
				<div class="sect">
					<div></div>
					<!--{loop $teams $index $one}-->
					<div class="cp">
						<p class="badge" style="cursor: hand; cursor: pointer;">
							{$currency}{$one['discount_rate']}
						</p>
						<div class="prodWrap">
							<a href="/team.php?id={$one['id']}" title="{$one['title']}" target="_blank">
								<img class="ci_css_img" src="${team_image($one['partner']['logo'])}" width="100" height="100" alt="{$one['discount_rate']}折">
							</a>
							<div class="prodTxt">
								<a href="/team.php?id={$one['id']}" title="{$one['title']}" target="_blank">
									<h3>{$currency}{$one['min_discount']} ~ {$currency}{$one['max_discount']}</h3>
									<h4>{$one['partner']['title']}</h4>
								</a>
								<p>
									<a href="/team.php?id={$one['id']}" title="{$one['title']}" target="_blank">
										{$one['title']}
									</a>
									<br>
								</p>
							</div>
						</div> 
						<div class="bar">
							<p class="join_num_and_end_time">
								<span class="join_number">{$one['now_number']}人已参加</span>
								<span class="end_time">${date('Y-m-d',$one['end_time'])}截止</span>
							</p>
							<p class="left_time_p" countdown="{$one['end_time']-time()}" hidden="true">
								<span class="time countdowner" countdown="{$one['end_time']-time()}" beforetoday="${floor(((time()-$one['begin_time']) / 3600) / 24)}">
								</span>
							</p>
							<a href="/team.php?id={$one['id']}" target="_blank">
								<p class="clip" hidden="true"></p>
							</a>
						</div>
					</div>
					<!--{/loop}-->
					<script type="text/javascript">
						var count_down_str = function(t){
							var m = Math.floor((t / 60) % 60).toString();
							var h = Math.floor((t / 3600) % 24).toString();
							var d = Math.floor((t / 3600) / 24).toString();
							return '还有 <span class="red">' + d + '</span>天<span class="red">' + h + '</span>小时<span class="red">' + m + '</span>分';
						};
						$(".countdowner").each(function(){
							var elem = this;
							var cntdown = function(total, beforetoday){
								if (total > 0){
									var msg = (beforetoday > 0) ? beforetoday + "天前开始，": "今天开始，";
									$(elem).html(msg + count_down_str(total));
									total = total - 60;
									setTimeout(function(){
										cntdown(total, beforetoday);
									},60000);
								} else{
									$(elem).html("活动已结束");
								}
							}
							cntdown($(this).attr("countdown"), $(this).attr("beforetoday"));
						});
						$(".cp").mouseover(function() {
							$(this).find(".join_num_and_end_time").hide();
							$(this).find(".left_time_p").show();
							$(this).find(".clip").show();
						}).mouseout(function() {
							$(this).find(".join_num_and_end_time").show();
							$(this).find(".left_time_p").hide();
							$(this).find(".clip").hide();
						});
					</script>
					<div class="clear"></div>
					<div>{$pagestring}</div>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
	<div id="sidebar">
		<!--{include block_side_network_weight}-->
		<!--{include block_side_subscribe}-->
	</div>
</div>
    </div> <!-- bd end -->
</div> <!-- bdw end -->

<div id="back2top">
</div>
<script type="text/javascript">
	function fixback2top(){
		if ($(window).scrollTop() > 0){
			$("#back2top").show();
		} else{
			$("#back2top").hide();
		}
	};
	function back2topInit(){
		fixback2top();
		$(window).scroll(fixback2top);
		$("#back2top").click(function(){
			$(window).scrollTop(0);
		}).css("left", $("#recent-deals").offset().left + $("#recent-deals").width() + 5);
	}
	// 加载执行
	try {
		window.attachEvent("onload", back2topInit);
	} catch(e) {
		window.addEventListener("load", back2topInit, false);
	}
</script>

<!--{include footer}-->